<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWallsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('walls', function (Blueprint $table) {
            $table->increments('id');
			$table->string('name')->default('')->comment('名称');
			$table->string('title')->default('')->comment('标题');
			$table->date('failure_date')->comment('失效日期');
			$table->string('qr_code')->default('')->comment('二维码');
			$table->string('background')->default('')->comment('背景');
			$table->string('remark')->default('')->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::dropIfExists('walls');
    }
}
